package com.mall.sun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.sun.model.dto.*;
import com.mall.sun.model.po.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.sun.model.po.Goodscategory;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
public interface GoodsService extends IService<Goods> {
    GoodDTO[] getAllGood( PageHelper pageHelper);
    Goodscategory[] getAllTypes();
    GoodAgentDTO[] getGoodsAgent(PageHelper pageHelper);
    GoodSupplierDTO[] getGoodsSuppier(PageHelper pageHelper);
    int updateGood(GoodDTO goodDTO);
    Long countGoods();
    GoodDTO[] search(String gname);
    BaseChartDTO[] getDayExp();
    BaseChartDTO[] getExpGood();
}
